﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace LCL.Tools.WinFrm.UserControls
{
    public partial class UcSysManage : UserControl
    {
        string cmcfgfile = Application.StartupPath + @"\cmcfg.ini";
        INIFile cfgfile;
        public UcSysManage()
        {
            InitializeComponent();
        }

        private void UcSysManage_Load(object sender, EventArgs e)
        {
            #region Loadcmcfgfile
            if (File.Exists(cmcfgfile))
            {
                cfgfile = new INIFile(cmcfgfile);
            }
            #endregion
        }

        public void SaveDBO()
        {
            cfgfile = new INIFile(cmcfgfile);
            if (chkLoginfo.Checked)
            {
                cfgfile.IniWriteValue("loginfo", "save", "1");
            }
            else
            {
                cfgfile.IniWriteValue("loginfo", "save", "0");
            }
        }
    }
}
